﻿namespace Borg.AddOn
{
    using System;

    [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
    public sealed class AddOnAttribute : Attribute
    {
        private readonly string _name;

        public string Name
        {
            get { return _name; }
        }

        public AddOnAttribute(string name)
        {
            if (name == null)
                throw new ArgumentNullException("name");

            _name = name;
        }
    }
}
